{{#extends @html/widgets/widget.html}}
{{:widget_div_name}}text{{/:widget_div_name}}

{{:widget_body}}
		{{?widget.items}}
			<div class="list-">
				{{!for widget.items do=@:ld_item}}
			</div>
		{{?:}}
			<div class="content"><p>Записей пока нет.</p></div>
		{{/?}}
{{/:widget_body}}

{{:ld_item}}
<div class="item-">
	<h3 class="ptitle-"><a href="{{/}}{{community.url}}/{{*post.oid}}">{{*post.title}}</a></h3>
	<div class="content">
		<p>{{*post.announce | safe}}</p>
	</div>
	{{?*post.commentscount}}
		<a href="{{/}}{{community.url}}/{{*post.oid}}?showcomments#comments" class=" comments-">{{!plural *post.commentscount "комментари" "й" "я" "ев" sep=" "}}</a>
	{{?:}}
		<span class=" comments-">Комментариев пока нет</span>
	{{/?}}
	<div class="author-">
		<img src="{{?!*poster.avatar}}{{images}}avatar-22x22.png{{?:}}{{/}}{{*poster.avatar | link_to 'imagestorage' 'sm2'}}{{/?}}" alt="" class="avatar-" />
		<div class="name-"><a href="{{/}}{{community.url}}/members/{{*poster.oid}}">{{*poster.fullname}}</a></div>
		<div class="datetime-">{{*post.ctime |date "%d %M"}}</div>
	</div>
</div>
{{/:ld_item}}
